package dr.item.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import dr.controller.*;

public class WriteFormAction extends ActionSupportLogin {

	@Override
	public String execute(HttpServletRequest request,
			HttpServletResponse response) throws Throwable {

		String id=getUserLoginId(request);// session
		
		//admin check
//		if(!id.equals("admin")) return ADMINNULL_PATH;
		//admin check
		
		int item_num=0;
		
		if(request.getParameter("item_num")!=null){
			item_num=Integer.parseInt(request.getParameter("item_num"));
		}
		request.setAttribute("item_num",new Integer(item_num));
				
		return "/item/writeForm.jsp";
	}

}
